// @ts-ignore
/* eslint-disable */
import { OpenApi as request } from "@/utils/request";

/** 订单详情信息 根据订单号获取订单详情信息 GET /supplyChain/order/detail/${param0} */
export async function orderDetail(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.orderDetailParams,
  options?: { [key: string]: any }
) {
  const { orderId: param0, ...queryParams } = params;
  return request<API.BaseResponseSupplyChainOrderVo>(
    `/barter-order/supplyChain/order/detail/${param0}`,
    {
      method: "GET",
      params: { ...queryParams },
      ...(options || {}),
    }
  );
}

/** 我的订单列表信息 根据订单号获取订单详情信息 GET /supplyChain/order/list */
export async function listPage(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.listPageParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageRespSupplyChainOrderVo>(
    `/barter-order/supplyChain/order/list`,
    {
      method: "GET",
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
